<!DOCTYPE html>
<html class=" -webkit-">
<head>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script src="../js/zepto.min.js"></script>
	<script src="../js/frozen.js"></script>
	<script src="../js/geo.js"></script>
	<script type="text/javascript">
	 wx.ready(function () {
	        wx.hideOptionMenu();
	    });
	 </script> 
	<meta charset="utf-8">
    <title>杰利联合</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <meta content="telephone=no, address=no" name="format-detection">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <link rel="stylesheet" type="text/css" href="../css/mobile_module.css?v=1493085388" media="all">
    <script type="text/javascript">
		//静态变量
		var IMG_PATH = "/Public/Home/images";
		var STATIC_PATH = "/Public/static";
		var SITE_URL = "http://jiujiu.hbweiyinqing.cn";
		var WX_APPID = "";
		var	WXJS_TIMESTAMP=''; 
		var NONCESTR= ''; 
		var SIGNATURE= '';
	</script>
    <script type="text/javascript" src="../js/jquery-2.0.3.min.js"></script>
	<script type="text/javascript" src="http://me.hbweiyinqing.cn/Public/js/zepto.js"></script>
	<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="../js/prefixfree.min.js?v=1493085388"></script>
	<script type="text/javascript" src="../js/dialog.js?v=1493085388"></script>
	<script type="text/javascript" src="../js/flipsnap.min.js?v=1493085388"></script>
	<script type="text/javascript" src="../js/mobile_module.js?v=1493085388"></script>
<link href="../css/common.css?v=1493085388" rel="stylesheet" type="text/css">
	
</head>

<body>
<div class="container">
  <!-- 订单信息 -->
  <div class="order_info">
    <p class="t">订单编号：20170425095322ac12cc6bd</p>
	<p class="t">传图设计师：HJT</p>
    <ul>
          </ul>
    <!--<p class="ship_type"> <span class="fl">配送方式</span> <span class="fr">快递：10元</span> </p>-->
    <p class="order_remark">
      <textarea placeholder="给厂家留言 或者 填写取消原因" name="remark" id="remark"></textarea>
    </p>
	<input type="hidden" name="order_number" value="20170425095322ac12cc6bd">
	<input type="hidden" name="order_id" value="8905">
    <p class="total_price"> <span class="orange">共1积分</span> </p>
    <a class="btn" href="javascript:void(0)" onclick="doPost()">确认订单</a><br>
 	 	<a style="margin-bottom: 10px;" class="btn blue_btn" href="javascript:void(0)" onclick="cancel()">取消订单</a>

  </div>
		 
</div>


<script type="text/javascript">
function doPost(){
	var remark = $('#remark').val();
	var order_number = $('input[name="order_number"]').val();
	var order_id = $('input[name="order_id"]').val();
/*	 
	var url = "";
	$.post(url,{'remark':remark, 'order_number':order_number,'order_id':order_id},function(res){
		if(res.result_code==0){
			alert(res.msg);
			$.Dialog.fail(res.msg);
		}else{*/
			$.Dialog.success("提交订单成功");
			//$url="http://jiujiu.hbweiyinqing.cn/index.php?s=/addon/PoitOrder/Wap/user_center.html";
			//window.location.href=$url;
		/*	WeixinJSBridge.call('closeWindow');
		}
	});*/
}
function cancel()
{
	var remark = $('#remark').val();
	var order_number = $('input[name="order_number"]').val();
	var order_id = $('input[name="order_id"]').val();
	var url = "";
	$.post(url,{'remark':remark, 'order_number':order_number,'order_id':order_id},function(res){
		if(res.result_code==0){
			$.Dialog.fail(res.msg);
		}else{
			$.Dialog.success("取消订单成功");
			//$url="http://jiujiu.hbweiyinqing.cn/index.php?s=/addon/PoitOrder/Wap/user_center.html";
			//window.location.href=$url;
			WeixinJSBridge.call('closeWindow');
		}
	});
}
</script>
</body>
</html>
